﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MeasurementItem")]
    public class MeasurementItem : BaseEntity
    {
        public enum MeasureType
        {
            机器 = 1,
            人工 = 2
        }

        [ForeignKey("pointId")]
        [Column(TypeName = "uuid")]
        public Guid pointId { get; set; }

        [Column(TypeName = "uuid")]
        public Guid MeasurementItemId { get; set; }

        [Column(TypeName = "varchar(64)")]
        public string title { get; set; }

        [Column(TypeName = "text")]
        public string siteValue { get; set; }

        [Column(TypeName = "int4")]
        public MeasureType MeasurementType { get; set; }
    }
}